import { createMemoryHistory, createRouter } from 'vue-router'

import Home from '../views/Home/index.vue'
import File from '../views/File/index.vue'

const routes = [
  { path: '/', redirect: { path: '/home' } },
  { path: '/home', component: Home },
  {
    path: '/search',
    component: File
  }
]

const router = createRouter({
  history: createMemoryHistory(),
  routes
})

export default router
